<html>
	<head>
		<meta charset="utf-8"/>
		<title>BLayout</title>
		<link rel="stylesheet" type="text/css" href="./style.css"/>
	</head>
	<body>
		<h1>BLayout</h1>
		<p>Inherites from <a href="BObject.html">BObject</a></p>
		<h2>public</h2>
		<table id="public">
			<tr><td align="right"/><td><a href="#BLayout(BWidget*)">BLayout</a>(BWidget* host = 0);</td></tr>
			<tr><td align="right"/><td><a href="#BLayout(const BString&,BWidget*)">BLayout</a>(const BString& name, BWidget* host = 0);</td></tr>
			<tr><td align="right"/><td><a href="#~BLayout()">~BLayout</a>();</td></tr>
			<tr><td align="right">virtual void </td><td><a href="#setHost(BWidget*)">setHost</a>(BWidget* host);</td></tr>
			<tr><td align="right">BWidget* </td><td><a href="#host()">host</a>() const;</td></tr>
			<tr><td align="right">void </td><td><a href="#setRect(const BRect&)">setRect</a>(const BRect& rect);</td></tr>
			<tr><td align="right">const BRect& </td><td><a href="#rect()">rect</a>() const;</td></tr>
			<tr><td align="right">void </td><td><a href="#setBorder(int)">setBorder</a>(int border);</td></tr>
			<tr><td align="right">int </td><td><a href="#border()">border</a>() const;</td></tr>
			<tr><td align="right">void </td><td><a href="#setSpacing(int)">setSpacing</a>(int spacing);</td></tr>
			<tr><td align="right">int </td><td><a href="#spacing()">spacing</a>() const;</td></tr>
			<tr><td align="right">void </td><td><a href="#setSizeStretch(const BSizeStretch&)">setSizeStretch</a>(const BSizeStretch& sizeStretch);</td></tr>
			<tr><td align="right">virtual BSizeStretch </td><td><a href="#sizeStretch()">sizeStretch</a>() const = 0;</td></tr>
			<tr><td align="right">void </td><td><a href="#setSizePolicy(Policy, Policy)">setSizePolicy</a>(Policy widthPolicy, Policy heightPolicy);</td></tr>
			<tr><td align="right">void </td><td><a href="#setSizePolicy(const BSizePolicy&)">setSizePolicy</a>(const BSizePolicy& sizePolicy);</td></tr>
			<tr><td align="right">virtual BSizePolicy </td><td><a href="#sizePolicy()">sizePolicy</a>() const = 0;</td></tr>
			<tr><td align="right">void </td><td><a href="#setFixedSize(const BSize&)">setFixedSize</a>(const BSize& fixedSize);</td></tr>
			<tr><td align="right">virtual BSize </td><td><a href="#fixedSize()">fixedSize</a>() const = 0;</td></tr>
			<tr><td align="right">void </td><td><a href="#setMinSize(const BSize&)">setMinSize</a>(const BSize& minSize);</td></tr>
			<tr><td align="right">virtual BSize </td><td><a href="#minSize()">minSize</a>() const = 0;</td></tr>
			<tr><td align="right">void </td><td><a href="#setMaxSize(const BSize&)">setMaxSize</a>(const BSize& maxSize);</td></tr>
			<tr><td align="right">virtual BSize </td><td><a href="#maxSize()">maxSize</a>() const;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#contain(const BWidget*)">contain</a>(const BWidget* widget) const = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#contain(const BLayout*)">contain</a>(const BLayout* layout) const = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#contain(const BSpacer*)">contain</a>(const BSpacer* spacer) const = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#contain(const BSpring*)">contain</a>(const BSpring* spring) const = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#remove(const BWidget*)">remove</a>(const BWidget* widget) = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#remove(const BLayout*)">remove</a>(const BLayout* layout) = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#remove(const BSpacer*)">remove</a>(const BSpacer* spacer) = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#remove(const BSpring*)">remove</a>(const BSpring* spring) = 0;</td></tr>
			<tr><td align="right">virtual void </td><td><a href="#clear()">clear</a>() = 0;</td></tr>
			<tr><td align="right">virtual BSize </td><td><a href="#sizeHint()">sizeHint</a>() const = 0;</td></tr>
			<tr><td align="right">virtual BSize </td><td><a href="#size()">size</a>() const = 0;</td></tr>
			<tr><td align="right">virtual bool </td><td><a href="#adjust()">adjust</a>() const = 0;</td></tr>
		</table>
		<h2>protected</h2>
		<table id="protected">
			<tr><td align="right">void </td><td><a href="#dirty()">dirty</a>() const;</td></tr>
			<tr><td align="right">bool </td><td><a href="#isdirty()">isdirty</a>() const;</td></tr>
			<tr><td align="right">void </td><td><a href="#clean()">clean</a>() const;</td></tr>
		</table>
		<div id="desc">
			<h2>Detailed Description : </h2>
			<p>The BLayout class is the abstruct base class of rectangle managers.</p>
			<p>This is an abstract base class inherited by the concrete classes BVBoxLayout, BHBoxLayout, BGridLayout.</p>
		</div>
		<h2 id="docs">Member Function Documentation</h2>
		<div id="BLayout(BWidget*)">
			<h3>BLayout(BWidget* host = 0);</h3>
			<p>Constructs a new top-level BLayout, with host widget. host may not be 0. There can be six top-level layout for a widget. It is returned by BWidget::layout(paty).</p>
		</div>
		<div id="BLayout(const BString&,BWidget*)">
			<h3>BLayout(const BString& name, BWidget* host = 0);</h3>
			<p>Constructs a layout with the name and host widget.</p>
		</div>
		<div id="~BLayout()">
			<h3>~BLayout();</h3>
			<p>Destroys the layout.</p>
		</div>
		<div id="setHost(BWidget*)">
			<h3>virtual void setHost(BWidget* host);</h3>
			<p>Set host widget of this layout, the child layout will be set with this host, host could be 0.</p>
		</div>
		<div id="host()">
			<h3>BWidget* host() const;</h3>
			<p>Get the host widget of this layout.</p>
		</div>
		<div id="setRect(const BRect&)">
			<h3>void setRect(const BRect& rect);</h3>
			<p>Reset the rect of layout, then this layout will be assigned dirty, the host widget will adjust it when widget is freshed.</p>
		</div>
		<div id="rect()">
			<h3>const BRect& rect() const;</h3>
			<p>Get the rect of this layout.</p>
		</div>
		<div id="setBorder(int)">
			<h3>void setBorder(int border);</h3>
			<p>Set the border value of this layout. The border is edge size of the layout.</p>
		</div>
		<div id="border()">
			<h3>int border() const;</h3>
			<p>Get the border value of this layout.</p>
		</div>
		<div id="setSpacing(int)">
			<h3>void setSpacing(int spacing);</h3>
			<p>Set spacing of this layout. The spacing is the value between items.</p>
		</div>
		<div id="spacing()">
			<h3>int spacing() const;</h3>
			<p>Get spacing of this layout.</p>
		</div>
		<div id="setSizeStretch(const BSizeStretch&)">
			<h3>void setSizeStretch(const BSizeStretch& sizeStretch);</h3>
			<p>Set size stretch of this layout, if layout's stretch is 0, it will use size stretch of contents.</p>
		</div>
		<div id="sizeStretch()">
			<h3>virtual BSizeStretch sizeStretch() const = 0;</h3>
			<p>Get the size stretch.</p>
		</div>
		<div id="setSizePolicy(Policy, Policy)">
			<h3>void setSizePolicy(Policy widthPolicy, Policy heightPolicy);</h3>
			<p>Set size policy of this layout, if layout's policy is Policy_None, the policy of contents will be used. This equals setSizePoicy(BSizePolicy(widthPolicy, heightPolicy)).</p>
		</div>
		<div id="setSizePolicy(const BSizePolicy&)">
			<h3>void setSizePolicy(const BSizePolicy& sizePolicy);</h3>
			<p>Set size policy of this layout, if layout's policy is Policy_None, the policy of contents will be used.</p>
		</div>
		<div id="sizePolicy()">
			<h3>virtual BSizePolicy sizePolicy() const = 0;</h3>
			<p>Get the real size policy of this layout.</p>
		</div>
		<div id="setFixedSize(const BSize&)">
			<h3>void setFixedSize(const BSize& fixedSize);</h3>
			<p>Set fixed size of this layout and size policy will be set of Policy_Fixed.</p>
		</div>
		<div id="fixedSize()">
			<h3>virtual BSize fixedSize() const = 0;</h3>
			<p>Return fixed size of this layout.</p>
		</div>
		<div id="setMinSize(const BSize&)">
			<h3>void setMinSize(const BSize& minSize);</h3>
		</div>
		<div id="minSize()">
			<h3>virtual BSize minSize() const = 0;</h3>
		</div>
		<div id="setMaxSize(const BSize&)">
			<h3>void setMaxSize(const BSize& maxSize);</h3>
		</div>
		<div id="maxSize()">
			<h3>virtual BSize maxSize() const;</h3>
		</div>
		<div id="contain(const BWidget*)">
			<h3>virtual bool contain(const BWidget* widget) const = 0;</h3>
			<p>Checks if this layout or child layout contains the widget.</p>
		</div>
		<div id="contain(const BLayout*)">
			<h3>virtual bool contain(const BLayout* layout) const = 0;</h3>
			<p>Checks if this layout or child layout contains the layout.</p>
		</div>
		<div id="contain(const BSpacer*)">
			<h3>virtual bool contain(const BSpacer* spacer) const = 0;</h3>
			<p>Checks if this layout or child layout contains the spacer.</p>
		</div>
		<div id="contain(const BSpring*)">
			<h3>virtual bool contain(const BSpring* spring) const = 0;</h3>
			<p>Checks if this layout or child layout contains the spring.</p>
		</div>
		<div id="remove(const BWidget*)">
			<h3>virtual bool remove(const BWidget* widget) = 0;</h3>
			<p>Remove the widget if this layout or child layout contains the widget.</p>
		</div>
		<div id="remove(const BLayout*)">
			<h3>virtual bool remove(const BLayout* layout) = 0;</h3>
			<p>Remove the widget if this layout or child layout contains the layout.</p>
		</div>
		<div id="remove(const BSpacer*)">
			<h3>virtual bool remove(const BSpacer* spacer) = 0;</h3>
			<p>Remove the widget if this layout or child layout contains the spacer.</p>
		</div>
		<div id="remove(const BSpring*)">
			<h3>virtual bool remove(const BSpring* spring) = 0;</h3>
			<p>Remove the widget if this layout or child layout contains the spring.</p>
		</div>
		<div id="clear()">
			<h3>virtual void clear() = 0;</h3>
			<p>Remves all item in this layout.</p>
		</div>
		<div id="sizeHint()">
			<h3>virtual BSize sizeHint() const = 0;</h3>
		</div>
		<div id="size()">
			<h3>virtual BSize size() const = 0;</h3>
		</div>
		<div id="adjust()">
			<h3>virtual bool adjust() const = 0;</h3>
			<p>Adjust this layout.</p>
		</div>
		<div id="dirty()">
			<h3 id="dirty()">void dirty() const;</h3>
			<p>Assigned this layout to be dirty, the host widget will adjust it.</p>
		</div>
		<div id="isdirty()">
			<h3 id="isdirty()">bool isdirty() const;</h3>
			<p>Checks if this layout is dirty.</p>
		</div>
		<div id="clean()">
			<h3 id="clean()">void clean() const;</h3>
		</div>
	</body>
</html>